package bma.common.thrift;

import org.apache.thrift.TException;
import org.apache.thrift.TProcessor;
import org.apache.thrift.protocol.TProtocol;

public class TProcessorWrap extends TProcessor4Error implements
		TProcessorWrapInterface {

	private TProcessor processor;

	public TProcessorWrap() {
		super();
	}

	public TProcessorWrap(TProcessor processor) {
		super();
		this.processor = processor;
	}

	public TProcessor getProcessor() {
		return processor;
	}

	public void setProcessor(TProcessor processor) {
		this.processor = processor;
	}

	@Override
	public TProcessor getInnerProcessor() {
		return this.processor;
	}

	@Override
	public boolean process(TProtocol in, TProtocol out) throws TException {
		return this.process(this.processor, in, out);
	}
}
